package cn.supermarket.common.contant;

import org.springframework.http.HttpMethod;

/**
 * @Author yp
 * @Date 2023/9/5:15:31
 **/
public interface SpringSecurityConstant
{
    /**
     * 放开权限校验的接口
     */
    String[] NONE_SECURITY_URL_PATTERNS = {
            //前端的
            "/favicon.ico",
            //获取验证码
            "/captchaImage",
            //登录登出
            "/",
            "/usbKeyLogin",
            "/login",
            //swagger相关
            "/swagger-ui/**",
            "/swagger-resources/**",
            "/v3/**",
            "/download",
            "/file/**",
            String.valueOf(HttpMethod.GET),
            "/",
            "/*.html",
            "/**/*.html",
            "/**/*.css",
            "/**/*.js",
            "/profile/**",
            "/webjars/**",
            "/*/api-docs",
            "/druid/**"
    };
}
